﻿@model WebUI.Models.Catalog
<div>@Ajax.ActionLink(Model.Title, "SuiFangTemplateForm", new { ID = Model.CatalogID }
    , new AjaxOptions() { LoadingElementId="OnLoadingSpan",UpdateTargetId = "SuiFangTemplateFormView", HttpMethod = "Get", InsertionMode = InsertionMode.Replace, OnFailure = "OnSiteError" })</div>
@if (Model.SubCatalogs.Count > 0)
{
    <ul id="sftc@(Model.CatalogID)">
        @foreach (var item in Model.SubCatalogs)
        {
            <li id="sftt@(item.CatalogID)">
                @Html.Partial("SuiFangTemplateTree", item)
            </li>
        }
    </ul>
}
